{{define "Gina/archives.html"}}
<!DOCTYPE html>
<html>
<head>
    {{template "head/head" .}}
    {{template "head/3rdstatistic" .}}
</head>
<body>
{{template "Gina/header" .}}
<div id="pjax">
    {{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<div class="wrapper page">
    <h1 class="page__title">
        <span id="archiveMonthCount">0</span> <span class="ft__fade ft__13">{{.I18n.Month2}}</span>
        <span id="archiveArticleCount">0</span> <span class="ft__fade ft__13">{{.I18n.Article2}}</span>
    </h1>
    <ul>
        {{range .Archives}}
        <li class="archives__item">
            <a href="{{.URL}}">
                {{.Title}}
                <span class="ft__fade ft__13">{{.ArticleCount}} {{$.I18n.Space}}</span>
            </a>
        </li>
        {{end}}
    </ul>
</div>
{{template "Gina/side" .}}
    {{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</div>
{{template "Gina/footer" .}}
{{if .pjax}}{{noescape "<!---- pjax {#pjax} start ---->"}}{{end}}
<script>
  increase({{len .Archives}}, 1000, 'archiveMonthCount', 0)
  increase({{.Statistic.StatisticArticleCount}}, 1000, 'archiveArticleCount', 0)
</script>
{{if .pjax}}{{noescape "<!---- pjax {#pjax} end ---->"}}{{end}}
</body>
</html>
{{end}}